//
//  CCTextField.h
//  CCKit
//
//  Created by tucici on 2019/5/24.
//  Copyright © 2019 tucici. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger,CCTextFieldType)
{
    CCTextFieldTypeDefault = 1,
    CCTextFieldTypeAccount,
    CCTextFieldTypeNumber,
    CCTextFieldTypePassword,
    CCTextFieldTypeVerifyCode,
    CCTextFieldTypeAccountList,
    CCTextFieldTypeSearch
};
@protocol CCTextFieldDelegate <UITextFieldDelegate>
//- (void)yjd_actionForXiaLa:(BOOL)isXiaLa;
- (BOOL)shouldVerifycationCode;
@end

@interface CCTextField : UITextField
//@property (nonatomic, weak) id <CCTextFieldDelegate>delegate;
@property (nonatomic, weak) id <CCTextFieldDelegate>cdelegate;

@property (nonatomic, strong) UIColor * placeholderColor;
@property (nonatomic, strong) UIFont * placeholderFont;
@property (nonatomic, strong) UIColor * tintColor;
@property (nonatomic, assign) CCTextFieldType type;
@property (nonatomic, strong)UIButton * verifyBtn;

- (instancetype)initWithPlaceholder:(NSString *)placeholder;
- (void)stopVerify;
@end

NS_ASSUME_NONNULL_END
